import request from '@/utils/request'

export const getGoodsService = (data) =>
  request.get("/api/goods/list", data);
export const updateGoodsService = (data) =>
  request.post("/api/goods/update", data, {headers: {'Content-Type': 'multipart/form-data'}});

export const delGoodsService = (id) =>
  request.delete("/api/goods/"+id);

export const addGoodsService = (data) =>
  request.post("/api/goods/add", data, {headers: {'Content-Type': 'multipart/form-data'}});
